
# include "dfxAudioDevice_OAL.h"

# if defined DFX_DEBUG
    # pragma comment(lib, "../Debug/DFXEngine.lib")
# else
    # pragma comment(lib, "../Release/DFXEngine.lib")
# endif

namespace DFX
{
    extern "C"
    {
        DFXRESULT DFX_EXPORT_ONLY AudioDeviceCreate(AudioDevice **ad);
    }

    DFXRESULT AudioDeviceCreate(AudioDevice **ad)
    {
        if (!*ad)
        {
            *ad = new AudioDevice_OAL();
            return DFX_SUCCESS;
        }

        return DFX_CREATEFAILED;
    }
}